.class public Lcom/example/m6wmr/CartlistActivity$viewClickListener;
.super Ljava/lang/Object;
.source "CartlistActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/example/m6wmr/CartlistActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "viewClickListener"
.end annotation


# instance fields
.field private myshopid:Ljava/lang/String;

.field private myshopname:Ljava/lang/String;

.field private shoptype:Ljava/lang/String;

.field final synthetic this$0:Lcom/example/m6wmr/CartlistActivity;

.field private typed:Ljava/lang/String;


# direct methods
.method public constructor <init>(Lcom/example/m6wmr/CartlistActivity;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0
    .param p2, "id"    # Ljava/lang/String;
    .param p3, "name"    # Ljava/lang/String;
    .param p4, "type"    # Ljava/lang/String;
    .param p5, "shoptyped"    # Ljava/lang/String;

    .prologue
    .line 170
    iput-object p1, p0, Lcom/example/m6wmr/CartlistActivity$viewClickListener;->this$0:Lcom/example/m6wmr/CartlistActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 171
    iput-object p2, p0, Lcom/example/m6wmr/CartlistActivity$viewClickListener;->myshopid:Ljava/lang/String;

    .line 172
    iput-object p3, p0, Lcom/example/m6wmr/CartlistActivity$viewClickListener;->myshopname:Ljava/lang/String;

    .line 173
    iput-object p4, p0, Lcom/example/m6wmr/CartlistActivity$viewClickListener;->typed:Ljava/lang/String;

    .line 174
    iput-object p5, p0, Lcom/example/m6wmr/CartlistActivity$viewClickListener;->shoptype:Ljava/lang/String;

    .line 175
    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 179
    iget-object v2, p0, Lcom/example/m6wmr/CartlistActivity$viewClickListener;->typed:Ljava/lang/String;

    const-string v3, "0"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 188
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 189
    .local v0, "intent":Landroid/content/Intent;
    const-string v2, "shopid"

    iget-object v3, p0, Lcom/example/m6wmr/CartlistActivity$viewClickListener;->myshopid:Ljava/lang/String;

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 190
    const-string v2, "shopname"

    iget-object v3, p0, Lcom/example/m6wmr/CartlistActivity$viewClickListener;->myshopname:Ljava/lang/String;

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 191
    iget-object v2, p0, Lcom/example/m6wmr/CartlistActivity$viewClickListener;->this$0:Lcom/example/m6wmr/CartlistActivity;

    const-class v3, Lcom/example/m6wmr/ShopDishesActivity;

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 192
    iget-object v2, p0, Lcom/example/m6wmr/CartlistActivity$viewClickListener;->this$0:Lcom/example/m6wmr/CartlistActivity;

    invoke-virtual {v2, v0}, Lcom/example/m6wmr/CartlistActivity;->startActivity(Landroid/content/Intent;)V

    .line 205
    .end local v0    # "intent":Landroid/content/Intent;
    :goto_0
    return-void

    .line 198
    :cond_0
    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    .line 199
    .local v1, "msg":Landroid/os/Message;
    iget-object v2, p0, Lcom/example/m6wmr/CartlistActivity$viewClickListener;->myshopid:Ljava/lang/String;

    iput-object v2, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 200
    const/4 v2, 0x7

    iput v2, v1, Landroid/os/Message;->arg1:I

    .line 201
    iget-object v2, p0, Lcom/example/m6wmr/CartlistActivity$viewClickListener;->this$0:Lcom/example/m6wmr/CartlistActivity;

    iget-object v2, v2, Lcom/example/m6wmr/CartlistActivity;->h:Landroid/os/Handler;

    invoke-virtual {v2, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0
.end method
